package hfjava;

import java.util.Arrays;

public class NoAgain_7 {
    public static void main(String[] args) {
        int[] arr12=new int[14];
        int k=0;
        int[] arr11={1,2,3,4,5,6,7,8,9,0,3,2,4,5,6,7,4,32,2,1,1,4,6,3};
        for (int i = 0; i <arr11.length-1; i++) {
            for (int j = i; j <arr11.length-1-i ; j++) {
                if (arr11[i]==arr11[j+1]){
                    arr11[j+1]='a';
                }
            }
        }

        for (int i = 0; i < arr11.length; i++) {
            if (arr11[i]==97){
                continue;
            }
            arr12[k]=arr11[i];
            k++;
        }
        System.out.println(Arrays.toString(arr12));
    }
}
